package com.java2404.micro.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @User userlq
 * @Date 2025/1/5 20:07
 * @Classname Order
 * @Description 订单实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("订单实体类")
@TableName("t_order")
public class Order {
    @ApiModelProperty(value = "订单id")
    private Integer oid;
    @ApiModelProperty(value = "用户id")
    private Integer uid;
    @ApiModelProperty(value = "商家id")
    private Integer mid;
    @ApiModelProperty(value = "订单编号")
    private String ono;
    @ApiModelProperty(value = "商品类型")
    private Integer gtype;
    @ApiModelProperty(value = "商品id")
    private Integer gid;
    @ApiModelProperty(value = "商品名称")
    private String gname;
    @ApiModelProperty(value = "商品价格")
    private BigDecimal gprice;
    @ApiModelProperty(value = "订单状态0：已下单；1：待付款；2：已付款；3：退货中；4：已退款；5：发货中；6：待收货")
    private Integer gstatus;
    @ApiModelProperty(value = "创建人")
    private String create_by;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime create_time;
    @ApiModelProperty(value = "更新人")
    private String update_by;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime update_time;
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;
}
